package com.lixunhuan.handacount.db.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author lixunhuan
 * @since 2021-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Diary implements Serializable {

    private static final long serialVersionUID = 1L;

    private int id;
    /**
     * 用户id
     */
    private String uid;

    /**
     * 日记
     */
    private String diary;

    /**
     * 标题
     */
    private String title;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime addTime;


}
